﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SanPhamBanChay.ascx.cs" Inherits="SanPhamBanChay" %>
<%@ Import Namespace="webapp4U" %>

<table width="185" border="0" cellpadding="0" cellspacing="0" class="photo-frame"
    align="center">
    <tr>
        <td class="topx--">
        </td>
        <td class="top-x-">
        </td>
        <td class="top--x">
        </td>
    </tr>
    <tr>
        <td class="midx--">
        </td>
        <td bgcolor="white" style="padding-left: 6px; padding-right: 6px" align="center">
            <table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td bgcolor="#f0f0f0" height="178px" valign="top">
                        <table cellspacing="0" cellpadding="0" width="98%" align="center">
                            <tbody>
                                <tr>
                                    <td style="padding-left: 3px; padding-top:3px;" align="left">
                                        <table width="100%">
                                            <tr>
                                                <td style="font-weight:bold; color:#606060; text-transform:uppercase" align="center">
                                                    <%=Globals.GetLang("Sản phẩm bán chạy","New Products") %></td>
                                            </tr>
                                             <tr>
                                                <td background="<%=Globals.ImagesUrl()%>m09.gif" height="1" style="background-repeat:repeat-x"></td>
                                            </tr>
                                            <tr>
                                                <td style="padding-top:5px;">
                                                      <!--begin noi dung -->
                                                          <marquee onmouseover=stop(); onmouseout=start(); scrollamount="2" height="120px" direction="up">
                                                            <table cellspacing="0" height="120px" cellpadding="0" width="100%" border="0" align="center">
                                                                <tbody>
                                                                   <asp:Repeater runat="server" ID="rptProducts">
                                                                    <ItemTemplate>
                                                                        <tr>
                                                                            <td align="center">
                                                                                <a href="<%=Globals.ApplicationPath %>Products/ProductDetail.aspx?ProductID=<%#Eval("ProductID")%>">
                                                                                    <img src='<%=Globals.ApplicationPath %>Products/Image.ashx?Size=M3&ImageUrl=<%# Eval("ImageUrl") %>' style="border:solid 1px #666666" />
                                                                                </a>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" class="ProductPrice">
                                                                                <%=ResourceManager.GetString("Product_Price") %>: <%#GetPrice((Decimal)Eval("UnitPrice")) %>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="font-weight:bold; color:#5ed3f6">
                                                                                <a class="ProductName" href="<%=Globals.ApplicationPath %>Products/ProductDetail.aspx?ProductID=<%#Eval("ProductID")%>"><%# Eval("Title")%></a>
                                                                            </td>
                                                                        </tr>
                                                                        <tr><td><br /></td></tr>
                                                                    </ItemTemplate>
                                                                   </asp:Repeater> 
                                                                </tbody>
                                                            </table>
                                                       </marquee>   
                                                      <!--end noi dung -->
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        <td class="mid--x">
        </td>
    </tr>
    <tr>
        <td class="botx--">
        </td>
        <td class="bot-x-">
        </td>
        <td class="bot--x">
        </td>
    </tr>
</table>